package org.smart4j.framework.test;

/**
 * Created by lenovo on 2015/11/18.
 */
public class SequenceA implements Sequence {
    private static int number=0;
    @Override
    public int getNumber() {
        number=number+1;
        return number;
    }

    public static void main(String[] args){
        Sequence sequence = new SequenceA();
        ChildThread thread1 = new ChildThread(sequence);
        ChildThread thread2 = new ChildThread(sequence);
        ChildThread thread3 = new ChildThread(sequence);

        thread1.start();
        thread2.start();
        thread3.start();
    }
}
